<div class="subscribe-form">
	<span class="text-wrap"><input type="text" class="text subscribe-now-box" value="E-mail Address" /></span>
	<input type="submit" class="submit subscribe-now" value="Subscribe now!" />
</div>
<script type="text/javascript">
	jQuery(document).ready(function () {
		jQuery(".subscribe-now").click(function(event) {

			var _email = jQuery('.subscribe-now-box').val();
			jQuery('.subscribe-now-box').val('Please wait');

			jQuery.ajax({
				url: siteInfo.baseUrl + '/newslettersignup/index/' + _email,
				context: document.body,
				success: function(data){
					if(data==""){
						alert("Subscribed successfully.")
						jQuery('.subscribe-now-box').val('E-mail Address');
					}
					else
					{
						alert(data);
						jQuery('.subscribe-now-box').val(_email);
					}
				}
			  });
		});
	});
</script>